package exercise4;
import java.util.Scanner;

import javax.swing.JOptionPane;;
public class Chars {
		public static void printChars(char ch1,char ch2,int numberPerLine) {
			int c=ch1,ch=ch2,count=0;
			StringBuilder str=new StringBuilder();
			for(int i=c;i<=ch;i++) {
				//String s=Integer.toString(i);
				//String s=String.valueOf(i);
				str.append((char)i+" ");
				count++;
				if(count%numberPerLine==0) {
					str.append("\n");
				}
			}
			JOptionPane.showMessageDialog(null, str.toString());
		}
}
